<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var pro1 = new Promise((resolve,reject) =>{
            resolve(1);
        });

        var pro2 = new Promise((resolve,reject)=>{
            setTimeout(() => {
                resolve(2);
            },3000)
        });

        var pro3 = pro1.then(result => {
            console.log("结果出来了" + result);
            return pro2;
        })
        pro3.then(result => {
            console.log(result);
        })


    </script>
</body>
</html>